@import '~antd/es/style/themes/default.less';

html,
body,
#root {
  height: 100%;
}

.colorWeak {
  filter: invert(80%);
}

.ant-layout {
  min-height: 100vh;
}

canvas {
  display: block;
}

body {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

ul,
ol {
  list-style: none;
}

@media (max-width: @screen-xs) {
  .ant-table {
    width: 100%;
    overflow-x: auto;

    &-thead > tr,
    &-tbody > tr {
      > th,
      > td {
        white-space: pre;

        > span {
          display: block;
        }
      }
    }
  }
}

// 兼容IE11
@media screen and(-ms-high-contrast: active), (-ms-high-contrast: none) {
  body .ant-design-pro > .ant-layout {
    min-height: 100vh;
  }
}

//内容区去掉边距
.ant-pro-page-header-wrap-children-content,
.ant-pro-basicLayout-content {
  margin: 0 !important;
}

//Tree文本行高
.ant-select-tree-iconEle + .ant-select-tree-title {
  display: inline-block;
  height: 24px;
  line-height: 24px;
  text-align: center;
  vertical-align: top;
}

//region 滚动条


::-webkit-scrollbar {
    -webkit-appearance: none;
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar:vertical {
    width: 10px
}

::-webkit-scrollbar:horizontal {
    height: 10px
}

::-webkit-scrollbar-button, ::-webkit-scrollbar-corner {
    display: none
}

::-webkit-scrollbar-track {
    background: transparent;
    border: 0
}

::-webkit-scrollbar-track:hover {
    /*background: #f9f9f9;*/
    border-color: #e1e1e1;
}

::-webkit-scrollbar-track:vertical {
    border-width: 0 0 0 0;
}

::-webkit-scrollbar-track:vertical:corner-present {
    border-width: 0 0 1px 1px;
    border-radius: 0 0 0 2px
}

::-webkit-scrollbar-track:horizontal {
    border-width: 1px 1px 0 1px;
    border-radius: 2px 2px 0 0
}

::-webkit-scrollbar-thumb {
    min-height: 2rem;
    background: #ccc;
    background-clip: padding-box;
    border: 3px solid transparent;
    border-radius: 10px
}

::-webkit-scrollbar-thumb:hover, ::-webkit-scrollbar-thumb:active {
    background-color: #999;
    border-width: 3px;
}


//endregion

pre {
  display: block;
  padding: 9.5px;
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.42857143;
  color: #333333;
  background-color: #f5f5f5;
  border: 1px solid #cccccc;
  border-radius: 4px;
  white-space: pre-wrap;
  word-break: break-all;
  word-wrap: break-word;
}


button .fa,
button .fal,
button .fab,
.ant-tabs-nav-list > button > i{
  margin-top: 3px;
  margin-right: 3px;
  width: 16px;
  height: 16px;
}

